<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			this.loginNum();
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			loginNum(){
				let userId= uni.getStorageSync('userId');
				if(userId){
					const requestParam = {
						url: "/app/mall/updateLoginNum?userId="+ uni.getStorageSync('userId'),
						method: "POST",
						callBack: (res) => {
							console.log(res,'登录成功')
						}
					}
					this.$request(requestParam);
				}
			}
		}
	}
</script>

<style>
	/*每个页面公共css */
	/* @import "wxcomponents/vant/dist/common/index.wxss"; */
	view{
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}
</style>
